package com.code.petapp.activity;

import android.content.Intent;
import android.os.Bundle;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CircleCrop;
import com.bumptech.glide.request.RequestOptions;
import com.code.petapp.R;
import com.code.petapp.databinding.ActivityStartBinding;

public class StartActivity extends BaseActivity {
    ActivityStartBinding inflate;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        inflate=ActivityStartBinding.inflate(getLayoutInflater());
        setContentView(inflate.getRoot());
        Glide.with(this).load(R.drawable.icon)
                .apply(RequestOptions.bitmapTransform(new CircleCrop()))
                .into(inflate.logoI);
       inflate.btLg.setOnClickListener(view -> startActivity(new Intent(StartActivity.this,LoginActivity.class)));
       inflate.bgRg.setOnClickListener(view -> startActivity(new Intent(StartActivity.this,RegisterActivity.class)));
    }
}